﻿using System;
using System.Collections.Generic;
using System.Text;

using BL.ServerBL;
using DBA.DataBaseAccess;


namespace BL.RemotingCommon
{
    public class ServerRemotingCommon :MarshalByRefObject, BL.RemotingInterface.IUserAuthority
    {
        #region UserIndentify
        public bool UserIndentify(string user_name, string user_password)
        {
            bool bl = DBAccess.UserIndentify(user_name.Trim(), user_password.Trim());
            return bl;
        //    return true;
        }

        public void RaiseUserLogin(string user_name, string user_ip, string user_hostname)
        {
            UserState.RaiseUserLogin(user_name, user_ip, user_hostname);
        }

        public void RaiseUserLogout(string user_hostname)
        {
            UserState.RaiseUserLogout(user_hostname);
        }
        #endregion
    }
}
